package com.imooc.controller;


import com.imooc.pojo.Stu;
import com.imooc.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 *
 * @author yukangkang
 * @email 1304473884@qq.com
 * @date 2021-01-16 21:20:11
 */
@RestController
@RequestMapping("stu")
public class StuController {

    @Autowired
    private StuService stuService;


    @GetMapping
    public Stu getById(String id){
        return stuService.getById(id);
    }


}
